﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Company.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    简历搜索器</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <script src="/scripts/class.js" type="text/javascript"></script>

    <script src="/scripts/areaSelecter.js" type="text/javascript"></script>

    <script src="/scripts/jobSelecter.js" type="text/javascript"></script>

    <script src="/scripts/industrySelecter.js" type="text/javascript"></script>

    <script type="text/javascript">
        $(document).ready(function() {
            $("#Province").change(function() { GetCity() });
            $("#lProvince").change(function() { GetlCity() });
        });

        function GetCity() {

            $("#City").empty(); //清空城市SELECT控件
            var url = "/ajax/GetCityList.aspx/" + $("#Province").val();
            $.getJSON(url, function(data) {
                $.each(data, function(i, item) {
                    $("<option></option>")
                    .val(item["id"])
                    .text(item["text"])
                    .appendTo($("#City"));
                });
            });
        }

        function GetlCity() {

            $("#lCity").empty(); //清空城市SELECT控件
            var url = "/ajax/GetCityList.aspx/" + $("#lProvince").val();
            $.getJSON(url, function(data) {
                $.each(data, function(i, item) {
                    $("<option></option>")
                    .val(item["id"])
                    .text(item["text"])
                    .appendTo($("#lCity"));
                });
            });
        }


    </script>

    <div class="rightinfo">
    <form action="../post/Personsearch.aspx" method=post>
        <div class="tempter2 empgn">
            <p>
                高级搜索</p>
            <table>
                <tr>
                    <td>
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td height="27" align="right" class="td1">
                        行业类别
                    </td>
                    <td class="td2">
                        <input style="width: 220px; height: 18px" id="VocationName" class="selecter" readonly
                            name="VocationName" />
                        <span style="display: none; color: red" id="calling_rfvbtnSel"></span>
                        <input id="VocationId" type="hidden" name="VocationId"/>

                        <script type="text/javascript">
                            var calling_btnSel = document.getElementById("VocationName");
                            var calling_hfIndustryID = document.getElementById("VocationId");
                            //indSelecter.init(calling_btnSel, calling_hfIndustryID);
                            calling_btnSel.onfocus = function() { indSelecter.show(calling_btnSel, calling_hfIndustryID); }
                        </script>

                    </td>
                </tr>
                <tr>
                    <td height="27" align="right">
                        求职职位
                    </td>
                    <td>
                        <span>
                            <input style="width: 220px; height: 18px" id="PostClassName" class="selecter" readonly
                                name="PostClassName">
                            <span style="display: none; color: red" id="jobFunction_rfvbtnSel"></span>
                            <input id="jobFunction_hfClassID" type="hidden" name="hfClassID"/>
                            <input id="PostClassId" type="hidden" name="PostClassId"/>

                            <script type="text/javascript">
                                var jobFunction_btnSel = document.getElementById("PostClassName");
                                var jobFunction_hfClassID = document.getElementById("jobFunction_hfClassID");
                                var jobFunction_hfClassDetailID = document.getElementById("PostClassId");
                                //jobSelecter.init(jobFunction_btnSel, jobFunction_hfClassID, jobFunction_hfClassDetailID);
                                jobFunction_btnSel.onfocus = function() { jobSelecter.show(jobFunction_btnSel, jobFunction_hfClassID, jobFunction_hfClassDetailID, true); }
                            </script>
                    </td>
                </tr>
                <tr>
                    <td height="27" align="right">
                        期望工作地点
                    </td>
                    <td>
                        <input style="width: 220px; height: 18px" id="Location" class="selecter" readonly
                            name="Location">
                        <span style="display: none; color: red" id="jobLocation_rfvbtnSel"></span>
                        <input id="jobLocation_hfProvinceID" type="hidden" name="hfProvinceID"/>
                        <input id="LocationId" type="hidden" name="LocationId"/>

                        <script type="text/javascript">
                            var jobLocation_btnSel = document.getElementById("Location");
                            var jobLocation_hfProvinceID = document.getElementById("jobLocation_hfProvinceID");
                            var jobLocation_hfCityID = document.getElementById("LocationId");
                            //areaSelecter.init(jobLocation_btnSel, jobLocation_hfProvinceID, jobLocation_hfCityID);
                            jobLocation_btnSel.onfocus = function() { areaSelecter.show(jobLocation_btnSel, jobLocation_hfProvinceID, jobLocation_hfCityID, true); }
                        </script>

                    </td>
                </tr>
                <tr>
                    <td height="27" align="right">
                        性别要求
                    </td>
                    <td>
                        <%= Html.RadioButton("sex", 0)%>不限
                        <%= Html.RadioButton("sex", 1)%>男
                        <%= Html.RadioButton("sex", 2)%>女
                    </td>
                </tr>
                <tr>
                    <td height="27" align="right">
                        月薪范围
                    </td>
                    <td>
                        <%= Html.DropDownList("salary1",ViewData["salaryList"] as SelectList ,"==请选择==")%>
                        —
                        <%= Html.DropDownList("salary2",ViewData["salaryList"] as SelectList ,"==请选择==")%>
                    </td>
                </tr>
                <tr>
                    <td height="27" align="right">
                        发布时间
                    </td>
                    <td>
                        <%= Html.DropDownList("Lastupdate", ViewData["postdateList"] as SelectList, "==请选择==")%>
                    </td>
                </tr>
                <tr>
                    <td height="27" align="right">
                        工作年限
                    </td>
                    <td>
                        <%= Html.DropDownList("WorkLength", ViewData["workList"] as SelectList, "==请选择==")%>
                    </td>
                </tr>
                <tr>
                    <td height="27" align="right">
                        学历
                    </td>
                    <td>
                        <%= Html.DropDownList("Education", ViewData["degreeList"] as SelectList, "==请选择==")%>
                    </td>
                </tr>
                <tr>
                    <td>
                        婚姻状况
                    </td>
                    <td>
                        <%=Html.RadioButton("Marriage",0)%>未婚
                        <%=Html.RadioButton("Marriage",1)%>已婚
                        <%=Html.RadioButton("Marriage",2)%>离异
                        <%=Html.RadioButton("Marriage",3)%>保密
                    </td>
                </tr>
                <tr>
                    <td height="27" align="right">
                        工作性质
                    </td>
                    <td>
                        <input value="全职" type="checkbox" name="jobtype1">
                        全职
                        <input value="兼职" type="checkbox" name="jobtype2">
                        兼职
                        <input value="实习" type="checkbox" name="jobtype3">
                        实习
                    </td>
                </tr>
                <tr>
                    <td height="27" align="right">
                        年龄
                    </td>
                    <td>
                        <%= Html.DropDownList("Agefrom", ViewData["ageMinList"] as SelectList, "==请选择==", new { style = "width:40px" })%>
                        —<%= Html.DropDownList("Ageto", ViewData["ageList"] as SelectList, "==请选择==", new { style = "width:40px" })%>
                    </td>
                </tr>
                <tr>
                    <td height="27" align="right">
                        户籍地区
                    </td>
                    <td>
                        <%=Html.DropDownList("Province", ViewData["toparea"] as SelectList, "==请选择==" )%>
                        —
                        <%=Html.DropDownList("City", ViewData["childcity"] as SelectList, "==请选择==")%>
                    </td>
                </tr>
                <tr>
                    <td height="27" align="right">
                        有相片简历
                    </td>
                    <td>
                        <input type="radio" value="1" name="Ispic">有
                        <input type="radio" value="0" name="Ispic">无
                    </td>
                </tr>
                <tr>
                    <td height="27" align="right">
                        关键字
                    </td>
                    <td>
                        <span class="inptexxt">
                                            <%= Html.TextBox("Keyword", "", new { style = "height: 18px; width: 318px;" })%>
                                        </span>
                                        <%= Html.DropDownList("Keywordtype", ViewData["keywordRangeList"] as SelectList)%>
                    </td>
                </tr>
            </table>
            <table>
                <tr>
                    <td class="td1">
                    </td>
                    <td class="td2">
                        <input type="submit" name="SearchEnter" value="搜  索" class="companybtn" />
                    </td>
                </tr>
            </table>
        </div>
    </div>
</asp:Content>
